From: Debian GNOME Maintainers Date: Tue, 16 Apr 2019 11:14:58 +0000 (+0100) Subject: i386-rounding-errors X-Git-Tag: archive/raspbian/2.44.10-2.1+rpi1~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5788dd3311868555278a82b707db6c36e15720e7;p=librsvg.git i386-rounding-errors Gbp-Pq: Name i386-rounding-errors.patch --- diff --git a/rsvg_internals/src/marker.rs b/rsvg_internals/src/marker.rs index ddc4624..475a893 100644 --- a/rsvg_internals/src/marker.rs +++ b/rsvg_internals/src/marker.rs @@ -589,7 +589,9 @@ fn find_outgoing_directionality_forwards( // Normalizes an angle to [0.0, 2*PI) fn normalize_angle(mut angle: f64) -> f64 { - if angle < 0.0 { + if angle.abs() < std::f64::EPSILON { + angle = angle.abs(); + } else if angle < 0.0 { while angle < 0.0 { angle += PI * 2.0; }